package com.breakfast.fun.ui.user.recharge.rechargerecord;

import com.breakfast.fun.data.entity.user.recharge.RechargeRecord;
import com.breakfast.fun.util.Api;
import com.breakfast.fun.util.RxSchedulers;

import java.util.Map;

import retrofit2.http.FieldMap;
import rx.Observable;

/**
 * Created by yukai on 16/9/11.
 */
public class RechargeRecordModel implements RechargeRecordContract.Model {
    @Override
    public Observable<RechargeRecord> getRechargeRecordModel(@FieldMap Map<String, String> map) {
        return Api.getInstance().service
                .getRechargeRecordModel(map)
                .compose(RxSchedulers.io_main());
    }
}
